package org.example.group5back.mapper;

import org.example.group5back.entity.EquipmentEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EquipmentMapper {
    public List<EquipmentEntity> findAllEquipment();
    public boolean updateEquipment(EquipmentEntity equip);
    public boolean insertEquipment(EquipmentEntity equip);
    public boolean deleteEquipment(int id);
    public void updateAfterDelete(int id);
    public List<EquipmentEntity> showAll();
    public List<EquipmentEntity> showPageLimit(@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize);
    public List<EquipmentEntity> selectByName(@Param("eq_name") String eq_name, @Param("eq_data") String eq_data,@Param("eq_after_sale") String eq_after_sale,@Param("eq_type") String eq_type);

}
